package com.cdj.common.activity;


import com.cdj.common.ILoadmoreBehavior;

/**
 * ---------------------------------------------------------<br />
 * desc：<br />
 * author：chendeji <br />
 * date：2021/6/19<br />
 * email：18701434169@163.com<br />
 * qq: 781571323
 * wx: melody_2009
 * ---------------------------------------------------------<br />
 */
public abstract class BaseListActivity extends BaseLoadDataActivity{
    private ILoadmoreBehavior loadmoreBehavior;

    public void setLoadingBehavior(ILoadmoreBehavior loadingBehavior) {
        this.loadmoreBehavior = loadingBehavior;
    }

    /**
     * desc：显示加载更多提示内容<br />
     * author：陈德基<br />
     * date：2021/6/3<br />
     * qq: 781571323
     * wx: melody_2009
     */
    protected void showLoadmore() {
        if (loadmoreBehavior != null) {
            loadmoreBehavior.onLoadMore();
        }
    }

    /**
     * desc：结束加载更多<br />
     * author：陈德基<br />
     * date：2021/6/3<br />
     * qq: 781571323
     * wx: melody_2009
     */
    protected void finishLoadmore() {
        if (loadmoreBehavior != null) {
            loadmoreBehavior.finishLoadMore();
        }
    }

}
